/**
 * @param {number[][]} grid
 * @return {number}
 */
var shortestPathBinaryMatrix = function (grid) {
  let res = -1, len = grid.length

  
  return dfs(0,0,0)
};